package com.hongdee.insurance.order.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author 王帅
 * @className TInsuranceOrderItem
 * @type A
 * @description 保险单对应的交强险商业险信息
 * @path com.hongdee.insurance.order.entity
 * @create 2017/6/15 15:43
 **/
@Entity
@Table(name = "T_INSURANCE_ORDER_ITEM")
public class TInsuranceOrderItem extends BaseEntity {

    @Column(name = "order_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '保险单ID' ")
    private String orderId;

    @Column(name = "contract_type", length = 32, columnDefinition = " VARCHAR(32) COMMENT '合同号类型 sy or jq' ")
    private String contractType;

    public String getInsurance() {
        return insurance;
    }

    public void setInsurance(String insurance) {
        this.insurance = insurance;
    }

    @Column(name = "insurance", length = 100, columnDefinition = " VARCHAR(100) COMMENT '被保险人' ")
    private String insurance;
    /**
     * 合同号
     */
    @Column(name = "contract_no", length = 32, columnDefinition = " VARCHAR(32) COMMENT '合同号' ")
    private String contractNO;
    /**
     * 起始日期
     */
    @Column(name = "start_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '起始日期' ")
    private String startDate;
    /**
     * 终止日期
     */
    @Column(name = "stop_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '终止日期' ")
    private String stopDate;
    /**
     * 成交价格
     */
    @Column(name = "price", length = 32, columnDefinition = " VARCHAR(32) COMMENT '成交价格' ")
    private String price;

    //佣金费率
    @Column(name = "commission", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金费率' ")
    private String commission;

    /**
     * 追加费率
     */
    @Column(name = "add_commission", length = 32, columnDefinition = " VARCHAR(32) COMMENT '追加佣金费率' ")
    private String addCommission;

    /**
     * 加投佣金
     */
    @Column(name = "add_commission_price", length = 32, columnDefinition = " VARCHAR(32) COMMENT '追加佣金为空时为加投费用' ")
    private String addCommissionPrice;

    @Column(name = "commission_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金费率ID' ")
    private String commissionId;

    //佣金
    @Column(name = "commission_price", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金' ")
    private String commissionPrice;

    //佣金
    @Column(name = "commission_temp", length = 32, columnDefinition = " VARCHAR(32) COMMENT '临时佣金' ")
    private String commissionTemp;

    public String getAddCommissionPrice() {
        return addCommissionPrice;
    }

    public void setAddCommissionPrice(String addCommissionPrice) {
        this.addCommissionPrice = addCommissionPrice;
    }

    //启用临时佣金
    @Column(name = "is_commission_temp", length = 32, columnDefinition = " VARCHAR(32) COMMENT '是否启用临时佣金 0 否 1 是' ")
    private String isCommissionTemp;

    /**
     * 佣金说明
     */
    @Column(name = "commission_exp", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金说明' ")
    private String commissionExp;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Column(name = "company_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '所属公司' ")
    private String companyId;

    @Column(name = "blance_type", length = 1, columnDefinition = " INT(1) COMMENT '结算状态 0未结算  1 已结算' ")
    private String blanceType;

    @Column(name = "blance_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '结算时间' ")
    private String blanceDate;

    /**
     * 报价单ID
     */
    @Column(name = "quotation_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '报价单ID' ")
    private String quotationId;

    public String getQuotationId() {
        return quotationId;
    }

    public void setQuotationId(String quotationId) {
        this.quotationId = quotationId;
    }

    public String getBlanceType() {
        return blanceType;
    }

    public void setBlanceType(String blanceType) {
        this.blanceType = blanceType;
    }

    public String getBlanceDate() {
        return blanceDate;
    }

    public void setBlanceDate(String blanceDate) {
        this.blanceDate = blanceDate;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getContractNO() {
        return contractNO;
    }

    public void setContractNO(String contractNO) {
        this.contractNO = contractNO;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getStopDate() {
        return stopDate;
    }

    public void setStopDate(String stopDate) {
        this.stopDate = stopDate;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCommission() {
        return commission;
    }

    public void setCommission(String commission) {
        this.commission = commission;
    }

    public String getCommissionTemp() {
        return commissionTemp;
    }

    public void setCommissionTemp(String commissionTemp) {
        this.commissionTemp = commissionTemp;
    }

    public String getIsCommissionTemp() {
        return isCommissionTemp;
    }

    public void setIsCommissionTemp(String isCommissionTemp) {
        this.isCommissionTemp = isCommissionTemp;
    }

    public String getCommissionExp() {
        return commissionExp;
    }

    public void setCommissionExp(String commissionExp) {
        this.commissionExp = commissionExp;
    }

    public String getCommissionPrice() {
        return commissionPrice;
    }

    public void setCommissionPrice(String commissionPrice) {
        this.commissionPrice = commissionPrice;
    }

    public String getCommissionId() {
        return commissionId;
    }

    public void setCommissionId(String commissionId) {
        this.commissionId = commissionId;
    }

    public String getAddCommission() {
        return addCommission;
    }

    public void setAddCommission(String addCommission) {
        this.addCommission = addCommission;
    }
}
